function [CNC_state,ask_list2,CNC_swork]=queuelist2(CNC_state,ask_list2,CNC_swork,CNC_work,number)
    ask_list2=[];
    inner_a_list2=[6 8];
    for i=1:length(inner_a_list2)
        if CNC_swork(inner_a_list2(i))
           if (CNC_state(inner_a_list2(i))-CNC_work(2))>= 0 
              ask_list2=[ask_list2,inner_a_list2(i)];     
           end
       else
           CNC_state(inner_a_list2(i))=0;
           ask_list2=[ask_list2,inner_a_list2(i)];
        end
       
    end
end